package com.mao.disruptor.consumer;

import com.lmax.disruptor.EventHandler;
import com.mao.disruptor.entity.LongEvent;

/**
 * 消费者获取生产者推送的数据
 */
public class LongEventHandler implements EventHandler<LongEvent> {
    @Override
    public void onEvent(LongEvent event, long sequence, boolean endOfBatch) throws Exception {
        System.out.println("消费者获取生产者数据1...event:" + event.getValue());
    }
}
